package com.assignwork.modules.pc;
import com.assignwork.dto.pcplan.ShipStatSearchDto;
import com.assignwork.modules.pc.service.pc.IShipStatService;
import com.assignwork.vo.pc.ShipStatVo;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName ShipStatController
 * @Description
 * @Author sl
 * @Date 2023/11/30 10:08
 */
@RestController
@RequestMapping("shipStat")
@AllArgsConstructor
public class ShipStatController extends BladeController {
    private IShipStatService service;

    @GetMapping("/list")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "列表", notes = "传入dto")
    public R<List<ShipStatVo>> selectShipStatList(ShipStatSearchDto dto) {
        List<ShipStatVo> data = service.selectShipStatList(dto);
        return R.data(data);
    }

}
